/*
 * Alberto Ruiz-Larrea Guillén...11383
 * Erdi Dogruel..................14955
 * Marcos Pérez Martín...........10324
 */

package com.example.database;

import android.database.sqlite.SQLiteDatabase;
import android.os.AsyncTask;

public class DeleteDatabase extends AsyncTask<OpenDB, Integer, Long> {

	@Override
	protected Long doInBackground(OpenDB... params) {

		// Delete database tables (leaderboard and gameplan)
		OpenDB db = params[0];
		SQLiteDatabase cambio = db.getWritableDatabase();
		cambio.delete(OpenDB.table3, null, null);
		cambio.delete(OpenDB.table4, null, null);

		return null;

	}

}